/*
 * Copyright (c) 2025 Industrial Software Feature Database
 */
package com.comac.ins.common.biz.controller;

import com.comac.ins.common.biz.domain.vo.BizEventInfoVo;
import com.comac.ins.common.biz.event.BizEventService;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 业务事件控制器
 *
 * @author zhanghongyi
 * @date 2025-01-23
 * @description BizEventController
 */
@Validated
@RestController
@RequestMapping("/biz/event")
public class BizEventController {

    /**
     * 查询业务事件信息
     *
     * @param ids 业务信息id列表
     * @return 事件信息
     */
    @GetMapping("/info")
    public List<BizEventInfoVo> info(@RequestParam List<Long> ids) {
        return BizEventService.queryEventInfoByIds(ids);
    }
}
